package com.icss.lesson3;

import org.apache.poi.ss.usermodel.Sheet;
import org.apache.poi.ss.usermodel.Workbook;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;

import java.io.IOException;

public class TestMain1 {
    public static void main(String[] args) {
        // 工作簿
        try {
            // offic x 2007+    2007- 没x
            //         docx           doc
            Workbook wb = new XSSFWorkbook("D:/2226在校学生信息统计.xlsx");
            Sheet sheet = wb.getSheetAt(0);
            System.out.println(sheet.getRow(0).getCell(0).getStringCellValue());

        } catch (IOException e) { // 编译时异常CheckedException
            e.printStackTrace();
        }


    }
}
